package com.vhall.component.entity.inav.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 预下麦请求参数
 *
 * @author yuanzh
 * @since 2021/9/15
 */
@Data
public class PreBreakSpeakReqVO implements Serializable {

    private static final long serialVersionUID = -6188911976140802304L;

    /**
     * required 房间Id
     */
    @NotBlank(message = "room_id不能为空")
    @Pattern(regexp = "[0-9a-zA-Z_]{1,32}", message = "room_id格式不正确")
    @ParamName("room_id")
    private String roomId;

    /**
     * required 被下麦用户id
     */
    @NotBlank(message = "receive_account_id不能为空")
    @Pattern(regexp = "[1-9][0-9]*", message = "receive_account_id格式不正确")
    @ParamName("receive_account_id")
    private String receiveAccountId;

}
